package hcn.protocol.registration;

import java.text.SimpleDateFormat;
import java.util.Date;

public class RegRepeatVo {

    private String name;
    private Integer planTime;
    private Date startDt;
    private Date endDt;
    private String orgName;
    private String deptName;
    private String doctorName;
    private String regId;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getPlanTime() {
        return planTime;
    }

    public void setPlanTime(Integer planTime) {
        this.planTime = planTime;
    }

    public Date getStartDt() {
        return startDt;
    }

    public void setStartDt(Date startDt) {
        this.startDt = startDt;
    }

    public Date getEndDt() {
        return endDt;
    }

    public void setEndDt(Date endDt) {
        this.endDt = endDt;
    }

    public String getOrgName() {
        return orgName;
    }

    public void setOrgName(String orgName) {
        this.orgName = orgName;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public String getDoctorName() {
        return doctorName;
    }

    public void setDoctorName(String doctorName) {
        this.doctorName = doctorName;
    }

    public String getRegId() {
        return regId;
    }

    public void setRegId(String regId) {
        this.regId = regId;
    }


    @Override
    public String toString() {
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        SimpleDateFormat sdf1 = new SimpleDateFormat("yyyy-MM-dd");
        SimpleDateFormat sdf2 = new SimpleDateFormat("HH:mm");
        String pt = "";
        switch (planTime){
            case 1:pt="上午";break;
            case 2:pt="下午";break;
            case 3:pt="晚上";break;
        }
        String time1 = sdf1.format(startDt);
        String amt = sdf2.format(startDt);
        String pmt = sdf2.format(endDt);

        return name+"已预约/"+time1+" "+pt+" "+amt+"-"+pmt+"/"+" "+deptName+" "+"/"+"无法重复预约/"+""+regId+"";

    }
}
